package com.liezh.proxy.staticproxy;

/**
 * @author liezh
 * @date 2020-7-20
 */
public class SubjectProxy implements Subject {

    private Subject subject;

    public SubjectProxy(Subject subject) {
        this.subject = subject;
    }

    public void doSth() {
        System.out.println("proxy before");
        subject.doSth();
        System.out.println("proxy after");
    }
}
